#pragma once
#include <vector>

class CTextInfo
{
public:
	CTextInfo(void);
	~CTextInfo(void);


	CString	getTextContentLine(int p_lineNum);
	void	addTextContentLine(CString p_textContent);
	void	clearText();
	void	removeEmptyLine();
	int		getTextContentSize();
	CHARFORMAT	getTextFont();
	void	setTextFont(CHARFORMAT& p_textFont);
	COLORREF	getTextColor();
	void	setTextColor(COLORREF p_textColor);
	void	getTextFormatCFont(CFont* p_cFont);
	int		getTextHeight(HDC p_dc);

	static void setlogPixelsY(HDC p_dc);
	inline std::vector<CString>& getTextContent();

private:
	CHARFORMAT m_textFont;
	//COLORREF m_textColor;
	std::vector<CString> m_textContent;
	static int m_logPixelsY;

};

std::vector<CString>& CTextInfo::getTextContent()
{
	return m_textContent;
}
